<template>
  <div>11</div>
</template>
<script>
export default {
  created() {
    const result = [
      {
        姓名: '张三',
        手机: '13111111111'
      },
      {
        姓名: '李四',
        手机: '13111111112'
      }
    ]
    const newArr = result.map((item) => {
      return {
        username: item['姓名'],
        mobile: item['手机']
      }
    })
    console.log(newArr)

    const result2 = [
      {
        username: '张三',
        mobile: '13111111111'
      },
      {
        username: '李四',
        mobile: '13111111112'
      }
    ]
  }
}
</script>
<style></style>
